Retrieving Data For Models |
|
If the data retrieval for a model is set to manual in the Model Properties dialog box, or if no dataset is available, that is the request is not auto-generated, you can use the following API to manually retrieve data from the backend.
var request = dataRequest.XMLDocument; newModel.setMethodRequest(request); newModel.getDataset();
You can also use these API to set the cursor-related methods, such as next and previous, by passing the respective parameters. You can use the getDataset() method for a method of the typeget. If all cursor methods are used, you can use the reset() method directly. This method identifies the request type and sends the request accordingly.